#include"mystdio.h"
#include<string.h>
#include<stdio.h>
int main()
{
  mFILE*fp=mfopen("log.txt","w");
  if(!fp)
  {
    printf("file open fail\n");
  }
  char str[64]="hello wzz\n";
  int cnt=10;
  while(cnt--)
  {
    mfwrite(str,strlen(str),fp);
    mfflush(fp);
    printf("%s",fp->outbuffer);

  }
  myclose(fp);
  return 0;
}
